﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonEmpSearch.aspx.cs"
    Inherits="RN.ERP.Web.Person.PersonEmpSearch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/skins/blue/css/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../Scripts/PsnEmpInfoSelect.js" type="text/javascript"></script>
    <%--<style type="text/css">
        table
        {
            border:1px solid #43a9f5;
            border-collapse:collapse;
        }
        td
        {
            border:1px solid #43a9f5;
            border-collapse:collapse;
        }
      .ckicon{ width:124px; height:53px; line-height:53px; margin:10px auto; background:url(../images/ckicon.jpg) left top no-repeat; text-align:center; font-size:18px; font-weight: bold; color:#936205; display:block}
        .about_title{ padding:0px 14px; height:26px; line-height:26px; text-align:center; background:#43a9f5; color:#fff; font-weight:bold; float:left;}
        .xian{ height:26px; border-bottom:1px #43a9f5 solid; padding:0px; margin-bottom:10px; margin-top:15px; width:500px;}
    </style>--%>
</head>
<body>
    <form id="form1" runat="server">
    <script type="text/javascript">

        var SearchStr;
        $(function () {
            Certificate = "<%=selCertificateName.ClientID %>";
            CSCode = "<%=selCSCode.ClientID %>";
            CLCode = "<%=selCLCode.ClientID %>";
            DropQual = "<%=DropQual.ClientID %>";
            DropSubQual = "<%=DropSubQual.ClientID %>";
            SearchStr = "<%=hdSearchStr.ClientID %>";
            itemFlag = $("#<%=hdEmpItemFlag.ClientID %>").val();
            itemType = $("#<%=hdEmpItemType.ClientID %>").val();
            Initial();
        });
        function Initial() {
            SelCertList("ZGZS", 0, Certificate, "-1", "-1"); //证书类别
            SetDefaultSelVal(CSCode); //专业
            SetDefaultSelVal(CLCode); //等级
            //证书类别begin
            $("#" + Certificate).change(function () {
                SelCertChange();
            });
            //资格
            selPostAll();
            SetSelParentVal();
            $("#" + DropQual).change(function () {
                SelChange();
            });
        }
        /*取得选择的条件格式化成字符串：字段=值&字段=值 */
        function GetSearchData() {
            var str = "";
            $("[control]").each(function () {
                str += "&" + $(this).attr("control") + "=" + $.trim($(this).val());
            });
            if (str.length > 0) {
                str = str.substring(1);
            }
            $("#" + SearchStr).val(str);
            return true;
        }
        /*关闭查询返回查询条件*/
        function returnToParent(result) {
            var oArg = new Object();
            oArg.SearchStr = $("#<%=hdReturnSearch.ClientID %>").val();
            oArg.Result = result;
//            top.ChildDialogCallBack = "OnClientCloseSearch";
//            top.ChildDialogClose(oArg);
            parent.window.OnClientCloseSearch(oArg);
            window.parent.$.ligerDialog.close(); ////关闭dialog
            parent.$(".l-dialog,.l-window-mask").hide(); ////去除父窗体遮罩层
        }
    </script>
    <input id="hdClassId" type="hidden" runat="server" value="0" />
    <input id="hdCorpGuid" type="hidden" runat="server" value="" />
    <input id="hdAreaCode" type="hidden" runat="server" value="" />
    <input id="hdRoleType" type="hidden" runat="server" value="" />
      <input id="hdRoleId" type="hidden" runat="server" value="" />
    <input id="hdSearchStr" type="hidden" runat="server" value="" />
    <input id="hdReturnSearch" type="hidden" runat="server" value="" />
         <input id="hdEmpItemType" type="hidden" runat="server" value="" />
     <input id="hdEmpItemFlag" type="hidden" runat="server" value="0" />
      <input id="hdEmpAreaCode" type="hidden" runat="server" value="" />
          <input id="hdOtherAreaCode" type="hidden" runat="server" value="0" />
             <input id="hdTag" type="hidden" runat="server" value="0" />
    <div class="xian" style="margin-left: 6px; width: 98%;">
        <div class="about_title">
            高级查询</div>
        <div class="i-con-cn">
        </div>
    </div>
    <div style="padding-bottom: 5px; width: 98%; background-color: #eaeaea; padding-top: 5px;
        margin-bottom: 10px; margin-left: 6px">
        <table width="99%" border="0" cellspacing="3" cellpadding="3">
            <tr style="height: 28px">
                <td align="right">
                    姓名
                </td>
                <td>
                    <input id="txtName" type="text" maxlength="30" style="width: 150px;" class="text_css"
                        control="Name" />
                </td>
                <td align="right">
                    身份证号
                </td>
                <td>
                    <input id="txtCard" type="text" maxlength="30" style="width: 150px;" class="text_css"
                        control="IDCard" />
                </td>
                <td align="right">
                    性别
                </td>
                <td>
                    <select id="DropSex" runat="server" control="Sex" style="width: 80px;">
                    </select>
                </td>
            </tr>
            <tr style="height: 28px">
                <td align="right">
                    资格证书
                </td>
                <td>
                    <select name="" id="selCertificateName" runat="server" control="TypeFlags" style="width: 150px;">
                    </select>
                </td>
                <td align="right">
                    专业
                </td>
                <td>
                    <select name="" id="selCSCode" runat="server" control="CertificateSpecialty" style="width: 100px;">
                    </select>
                </td>
                <td align="right">
                    等级
                </td>
                <td>
                    <select name="" id="selCLCode" runat="server" control="CertificateLevel" style="width: 80px;">
                    </select>
                </td>
            </tr>
            <tr style="height: 28px">
                <td align="right">
                    企业名称
                </td>
                <td>
                    <input id="txtCorpName" type="text" maxlength="30" style="width: 150px;" class="text_css"
                        control="corpName" />
                </td>
                <td align="right">
                    职称
                </td>
                <td>
                    <select id="DropQual" runat="server" control="Post_psZG" style="width: 100px;">
                        <option value="-1">请选择</option>
                    </select>
                    <select id="DropSubQual" runat="server" control="Post_psZGCode" style="width: 120px;">
                        <option value="-1">请选择</option>
                    </select>
                </td>
                <td align="right">
                    审核状态
                </td>
                <td>
                  <asp:DropDownList ID="dropEmpStatus" runat="server" control="FlowCode" AppendDataBoundItems="true" Width="80px">
                                   <%--  <asp:ListItem Value="">全部</asp:ListItem>
                                   <asp:ListItem Value="0,019|0,019,022|0,019,032|0,019,029,032|0,019,029">处理中</asp:ListItem>
                                    <asp:ListItem Value="1,019,039|1,019,029,039">已处理</asp:ListItem>
                                    <asp:ListItem Value="0,019,031|0,019,021|0,019,029,031">退回</asp:ListItem>--%>
                                </asp:DropDownList>
                       <%--   <select name="" id="selEmpStatus" runat="server" control="FlowCode" style="width: 80px;">
                        <option value="">请选择</option>
                  <option value="0,019|0,019,022|0,019,032|0,019,029,032|0,019,029">处理中</option>
                        <option value="1,019,039|1,019,029,039">已处理</option>
                        <option value="0,019,031|0,019,021|0,019,029,031">退回</option>
                    </select>--%>
                </td>
            </tr>
            <tr>
                <td colspan="6">
                </td>
            </tr>
        </table>
    </div>
    <div class="ckicon">
        <asp:LinkButton ID="lbtnSearch" runat="server" OnClick="lbtnSearch_Click" OnClientClick="GetSearchData();">查询</asp:LinkButton>
    </div>
    </form>
</body>
</html>
